package com.xfcy.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xfcy.blog.entity.FriendLink;
import com.xfcy.blog.vo.FriendLinkVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 友情链接表(FriendLink)表数据库访问层
 *
 * @author 晓风残月Lx
 * @since 2023-04-09 11:03:05
 */
@Repository
public interface FriendLinkMapper extends BaseMapper<FriendLink> {

    /**
     * 查询出所有上架的友链
     * @param code
     * @return
     */
    List<FriendLinkVO> selectLinkList(@Param("code") Integer code);
}

